package com.collection.dao;


import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.collection.common.base.BaseDaoImpl;
import com.collection.entity.CollectionTask;

@Repository
public class CollectionTaskDao extends BaseDaoImpl<CollectionTask> {

	public void executeSQL(String sql) {
		jdbcTemplate.execute(sql);
	}
	
	public void executeSQLByParams(String sql, Object...args) {
		jdbcTemplate.update(sql, args);
	}
	
	public List<Map<String, Object>> queryForListSQL(String sql, Object...args) {
		return jdbcTemplate.queryForList(sql, args);
	}
	
	public int queryForIntSQL(String sql, Object...args) {
		return jdbcTemplate.queryForInt(sql, args);
	}
}
